package com.yuyou.tas.job.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.tas.util.exception.CheckException;

@RestController
@RequestMapping(value="/health")
public class CheckController {

    @RequestMapping(value ="/ready",method = {RequestMethod.GET, RequestMethod.POST})
    public String ready(){
    	try{
    	}catch(Exception e){
    		throw new CheckException("ready error");
    	}  	
    	return "ok";
    }	
	
    @RequestMapping(value ="/alive",method = {RequestMethod.GET, RequestMethod.POST})
    public String alive(){
    	try{
    	}catch(Exception e){
    		throw new CheckException("ready error");
    	}  	
    	return "ok";
    }	

	
	
}
